* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cyber-container {
    filter: hue-rotate(15deg) saturate(1.5);
}

.cyber-filter {
    font-family: 'Courier New', monospace;
    background: linear-gradient(45deg,
    #0f0c29, #302b63, #24243e,
    #2c3e50, #1a1a2e, #16213e,
    #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #e0e0ff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientBG {
    0% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(100, 200, 255, 0.6);
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
    25% { transform: translate(20px, -30px) rotate(90deg); opacity: 0.4; }
    50% { transform: translate(-25px, 40px) rotate(180deg); opacity: 0.6; }
    75% { transform: translate(15px, 20px) rotate(270deg); opacity: 0.5; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 2px solid #00eeff;
    position: relative;
    background: rgba(10, 20, 40, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.3);
}

h1 {
    font-size: 2.8em;
    background: linear-gradient(45deg, #00eeff, #00ff9d, #ff00e6, #00eeff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(0, 238, 255, 0.5);
    letter-spacing: 3px;
    margin-bottom: 10px;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 10px rgba(0, 238, 255, 0.5); }
    to { text-shadow: 0 0 20px rgba(0, 238, 255, 0.8), 0 0 30px rgba(255, 0, 230, 0.6); }
}

.subtitle {
    color: #a0a0ff;
    font-size: 1.2em;
    opacity: 0.9;
    margin-top: 10px;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(20, 30, 60, 0.8);
    border: 1px solid #00eeff;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.layout-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

label {
    color: #00eeff;
}

input[type="number"] {
    width: 60px;
    padding: 8px;
    background: rgba(30, 40, 80, 0.8);
    border: 1px solid #00eeff;
    color: #00eeff;
    border-radius: 4px;
    outline: none;
}

input[type="number"]:focus {
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.5);
}

.buttons {
    display: flex;
    gap: 10px;
}

button {
    padding: 12px 24px;
    background: linear-gradient(45deg, #0066cc, #0099ff);
    border: 1px solid #00eeff;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: bold;
}

button:hover:not(:disabled) {
    background: linear-gradient(45deg, #0099ff, #00ccff);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.7);
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.app-grid-container {
    height: 65vh;
    overflow-y: auto;
    border: 2px solid #00eeff;
    border-radius: 8px;
    padding: 15px;
    background: rgba(20, 30, 60, 0.6);
    position: relative;
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
}

.app-grid {
    display: grid;
    gap: 20px;
    padding: 10px;
}

.app-card {
    background: linear-gradient(135deg, rgba(30, 40, 80, 0.9), rgba(50, 60, 120, 0.9));
    border: 1px solid #00eeff;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 238, 255, 0.4);
    border-color: #00ffff;
}

.app-card.selected {
    border-color: #ff00cc;
    box-shadow: 0 0 20px rgba(255, 0, 204, 0.5);
}

.app-id {
    color: #ff66cc;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: bold;
}

.app-name {
    color: #00eeff;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
}

.app-description {
    color: #a0a0ff;
    font-size: 0.9em;
    line-height: 1.4;
}

.checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
}

.delete-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 0.8em;
    background: linear-gradient(45deg, #cc0066, #ff0066);
    border: none;
    color: white;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #00eeff;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.5);
    backdrop-filter: blur(10px);
}

.modal-title {
    color: #00eeff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 15px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    background: rgba(30, 40, 80, 0.8);
    border: 1px solid #00eeff;
    color: #e0e0ff;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    outline: none;
}

input:focus, textarea:focus {
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.5);
}

textarea {
    height: 100px;
    resize: vertical;
}

.file-upload {
    position: relative;
    margin: 15px 0;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 12px;
    background: rgba(30, 40, 80, 0.8);
    border: 1px dashed #00eeff;
    border-radius: 4px;
    text-align: center;
    color: #a0a0ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background: rgba(40, 60, 120, 0.8);
    color: #00eeff;
}

.file-info {
    margin-top: 5px;
    font-size: 0.8em;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.confirm-modal.active {
    opacity: 1;
    pointer-events: all;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 238, 255, 0.3);
    border-top: 5px solid #00eeff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(20, 30, 60, 0.8);
    border: 1px solid #00eeff;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.selected-count {
    color: #ff66cc;
    font-weight: bold;
}

.delete-selected-btn {
    background: linear-gradient(45deg, #cc0066, #ff0066);
    border-color: #ff0066;
    color: white;
}

.delete-selected-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #ff0066, #ff3399);
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.7);
}

.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00eeff, #00ff9d, #ff00e6, #00eeff);
    border-radius: 10px;
    z-index: -1;
    animation: borderAnimation 3s linear infinite;
    background-size: 400% 400%;
}

@keyframes borderAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 238, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 238, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 238, 255, 0); }
}